From 293339e1fc4a826380e9e69e3107d903c771af45 Mon Sep 17 00:00:00 2001 From: cjmarkie Date: Sat, 25 Oct 2025 13:24:47 +0000 Subject: [PATCH] Initiate request for request redirection --- doc/todo/Special_remote_redirect_to_URL.mdwn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/todo/Special_remote_redirect_to_URL.mdwn diff --git a/doc/todo/Special_remote_redirect_to_URL.mdwn b/doc/todo/Special_remote_redirect_to_URL.mdwn new file mode 100644 index 0000000000..1407702620 --- /dev/null +++ b/doc/todo/Special_remote_redirect_to_URL.mdwn @@ -0,0 +1,15 @@ +The [external special remote protocol](/design/external_special_remote_protocol/) allows the following responses to `TRANSFER RETRIEVE {key} {file}`: + +* `TRANSFER-SUCCESS RETRIEVE {key}` +* `TRANSFER-FAILURE RETRIEVE {key} {message}` + +I propose a third response: `TRANSFER-REDIRECT RETRIEVE {key} {url}` + +This will permit the following use cases: + +1) Make a request against an authentication server that provides a short-lived access token to the same or a different server. The authentication server does not need to relay the data. +2) Deterministically calculate a remote URL (or local path) without reimplementing HTTP fetch logic, taking advantage of the testing and security hardening of the git-annex implementation. + + +[[!meta author=cjmarkie]] +[[!tag projects/openneuro]] -- 2.39.5